/*
** my_strcmp.c for minishell2 in /home/lingla_j/work/tutorat/env
** 
** Made by julien linglain
** Login   <lingla_j@epitech.net>
** 
** Started on  Tue Feb 28 18:10:31 2012 julien linglain
** Last update Tue Feb 28 18:22:05 2012 julien linglain
*/

#include "mysh.h"

int	my_strcmp(char *s1, char *s2)
{
  int	i;

  i = 0;
  if (s1[i] > s2[i])
    {
      return (1);
    }
  if (s1[i] < s2[i])
    {
      return (-1);
    }
  while ((s1[i] != '\0') || (s2[i] != '\0'))
    {
      i = i + 1;
      if (s1[i] > s2[i])
	return (1);
      if (s1[i] < s2[i])
	return (-1);
    }
  return (0);
}
